package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IPublishLogsDao;
import com.guoxue.domain.PublishLogsVo;
import com.guoxue.service.IPublishLogsService;
@Service("publishLogsService")
public class PublishLogsServiceImpl implements IPublishLogsService {
	@Resource
	private IPublishLogsDao publishDao;

	@Override
	public List<PublishLogsVo> getPublishLogs() {
		return publishDao.getPublishLogs();
	}

	@Override
	public void savePublishLogs(PublishLogsVo pub) {
		 publishDao.savePublishLogs(pub);
	}

	@Override
	public void deleteForStatus(int id) {
		publishDao.deleteForStatus(id);
	}

	@Override
	public void updateStatus(String versionCode) {
		publishDao.updateStatus(versionCode);
	}

	@Override
	public PublishLogsVo getPublishByStatus(String i) {
		return publishDao.getPublishByStatus(i);
	}

}
